optionalWithDefault

fun optionalWithDefault(default: () -> String): ReadOnlyProperty<Any?, String>

Get an optional delegate with a default value. Property names will be converted to snake-case unless name is specified.

fun optionalWithDefault(name: String, default: () -> String): ReadOnlyProperty<Any?, String>

Get an optional delegate with a default value for name.